<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <title>动态绑定style(对象语法)</title>
  </head>

  <body>
    <div id="app">
      <!--    <h1 :style="{key(属性名):value(属性值)}">{{message}}</h1:style>-->
      <!--属性名要驼峰法书写，属性值要加单引号-->
      <h1 :style="{fontSize:'20px'}">{{message}}</h1:style>
        <h1 :style="{fontSize:finalFont+'px'}">{{message}}</h1:style>
    </div>
    <script src="../js/vue.js"></script>
    <script>
      new Vue({
        el: "#app",
        data: {
          message: "你好，世界",
          finalFont: 50,
        }
      })
    </script>
  </body>

</html>